"use client";
import { usePathname } from "@/i18n/routing";
import { AnimatePresence, motion } from "framer-motion";
import { LayoutRouterContext } from "next/dist/shared/lib/app-router-context.shared-runtime";
import { ReactNode, useContext, useRef } from "react";
// const Template = ({ children }: { children: ReactNode }) => {
// const key = usePathname();
// return (
//
//
// {children}
//
//
// );
// };
function FrozenRouter(props: { children: ReactNode }) {
const context = useContext(LayoutRouterContext ?? {});
const frozen = useRef(context).current;
return (
{props.children}
);
}
const Template = ({ children }: { children: ReactNode }) => {
const key = usePathname();
return (
{children}
);
};
export default Template;